﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using Contracts;

namespace Client2
{
    class Program
    {
        static void Main(string[] args)
        {
            using (ChannelFactory<IShowTime> channelFactory = new ChannelFactory<IShowTime>("DateTimeService"))
            {
                var proxy = channelFactory.CreateChannel();
                Console.WriteLine("服务器时间：{0}", proxy.Show());
                Console.ReadKey(true);
            }
        }
    }
}
